package com.example.android_pti_backup;

import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ArrayAdapter;
import android.widget.Spinner;
import android.widget.Toast;

public class IsiPesanan extends Activity {

	protected String[] isiSpinNamaMenu;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_isi_pesanan);

//		isiSpinNamaMenu = this.getResources().getStringArray(
//				R.array.isiSpinNamaMenu);
//
//		Spinner spinNamaMenu = (Spinner) findViewById(R.id.spinNamaMenu);
//		
//		ArrayAdapter<CharSequence> adapterNamaMenu = ArrayAdapter
//				.createFromResource(this, R.array.isiSpinNamaMenu,
//						android.R.layout.simple_spinner_item);
//
//		spinNamaMenu.setAdapter(adapterNamaMenu);
//		
//		spinNamaMenu.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
//
//			@Override
//			public void onItemSelected(AdapterView<?> parent, View v, int position, long id) {
//				Toast.makeText(IsiPesanan.this, isiSpinNamaMenu[position], Toast.LENGTH_SHORT).show();
//				
//			}
//
//			@Override
//			public void onNothingSelected(AdapterView<?> arg0) {
//				// TODO Auto-generated method stub
//				
//			}
//			
//		});

	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.isi_pesanan, menu);
		return true;
	}

}
